<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>举报详情 - 社交平台</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #eff6ff;
            --danger: #ef4444;
            --danger-light: #fee2e2;
            --warning: #f59e0b;
            --warning-light: #fef3c7;
            --success: #10b981;
            --success-light: #dcfce7;
            --dark: #1e293b;
            --light: #f8fafc;
            --gray: #94a3b8;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .main-container {
            display: flex;
            min-height: calc(100vh - 56px);
        }
        
        .sidebar {
            width: 260px;
            background-color: white;
            border-right: 1px solid var(--border);
            padding: 1.5rem 1rem;
            flex-shrink: 0;
        }
        
        .content {
            flex-grow: 1;
            padding: 2rem;
        }
        
        .section-title {
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card {
            border: none;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        
        .card-header {
            background-color: white;
            border-bottom: 1px solid var(--border);
            padding: 1rem 1.25rem;
            font-weight: 600;
        }
        
        .card-body {
            padding: 1.25rem;
        }
        
        .report-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }
        
        .report-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .author-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-info {
            line-height: 1.4;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .report-time {
            font-size: 0.9rem;
            color: var(--gray);
        }
        
        .report-status {
            font-size: 0.9rem;
            padding: 0.35rem 1rem;
            border-radius: 999px;
            font-weight: 500;
        }
        
        .status-pending {
            background-color: var(--warning-light);
            color: #92400e;
        }
        
        .status-processing {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .status-resolved {
            background-color: var(--success-light);
            color: #059669;
        }
        
        .status-rejected {
            background-color: var(--danger-light);
            color: var(--danger);
        }
        
        .report-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.3;
        }
        
        .report-type {
            display: inline-block;
            font-size: 0.85rem;
            padding: 0.25rem 0.85rem;
            border-radius: 999px;
            font-weight: 500;
            margin-bottom: 1.5rem;
        }
        
        .type-spam {
            background-color: var(--danger-light);
            color: var(--danger);
        }
        
        .type-inappropriate {
            background-color: var(--warning-light);
            color: #92400e;
        }
        
        .type-plagiarism {
            background-color: var(--primary-light);
            color: var(--primary);
        }
        
        .type-harassment {
            background-color: #fce7f3;
            color: #be185d;
        }
        
        .type-fake {
            background-color: #e0e7ff;
            color: #3730a3;
        }
        
        .type-theft {
            background-color: #f3e8ff;
            color: #7e22ce;
        }
        
        .report-content {
            margin-bottom: 2rem;
            font-size: 1.05rem;
            line-height: 1.7;
        }
        
        .report-images {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .report-images img {
            border-radius: 0.5rem;
            max-height: 300px;
            object-fit: cover;
            box-shadow: var(--shadow);
        }
        
        .report-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            margin-bottom: 2rem;
            padding: 1rem;
            background-color: var(--primary-light);
            border-radius: 0.5rem;
        }
        
        .meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .meta-item i {
            color: var(--primary);
        }
        
        .report-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .btn {
            padding: 0.5rem 1.25rem;
            border-radius: 0.5rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-primary:hover {
            background-color: #2563eb;
            border-color: #2563eb;
        }
        
        .btn-success {
            background-color: var(--success);
            border-color: var(--success);
        }
        
        .btn-success:hover {
            background-color: #059669;
            border-color: #059669;
        }
        
        .btn-danger {
            background-color: var(--danger);
            border-color: var(--danger);
        }
        
        .btn-danger:hover {
            background-color: #dc2626;
            border-color: #dc2626;
        }
        
        .btn-outline-secondary {
            background-color: transparent;
            border-color: var(--border);
            color: var(--dark);
        }
        
        .btn-outline-secondary:hover {
            background-color: var(--border);
        }
        
        .involved-user {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            border-radius: 0.5rem;
            background-color: #f1f5f9;
            margin-bottom: 2rem;
        }
        
        .involved-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .involved-info {
            flex-grow: 1;
        }
        
        .involved-name {
            font-weight: 600;
        }
        
        .involved-actions {
            font-size: 0.9rem;
        }
        
        .timeline {
            position: relative;
            margin-bottom: 2rem;
            padding-left: 2rem;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: var(--border);
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 1.5rem;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2.5rem;
            top: 0.3rem;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: var(--primary);
            border: 2px solid white;
        }
        
        .timeline-item.resolved::before {
            background-color: var(--success);
        }
        
        .timeline-item.rejected::before {
            background-color: var(--danger);
        }
        
        .timeline-time {
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 0.25rem;
        }
        
        .timeline-content {
            background-color: white;
            padding: 1rem;
            border-radius: 0.5rem;
            border: 1px solid var(--border);
        }
        
        .comment-form {
            margin-bottom: 2rem;
        }
        
        .comment-textarea {
            width: 100%;
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 1rem;
            resize: vertical;
            min-height: 120px;
            margin-bottom: 1rem;
            font-family: inherit;
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .comment-list {
            margin-top: 1.5rem;
        }
        
        .comment-item {
            padding: 1.25rem;
            border-radius: 0.5rem;
            background-color: white;
            border: 1px solid var(--border);
            margin-bottom: 1rem;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }
        
        .comment-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-author-name {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--gray);
        }
        
        .comment-content {
            margin-bottom: 0.75rem;
            line-height: 1.6;
        }
        
        .comment-actions {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            cursor: pointer;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .reply-form {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed var(--border);
            display: none;
        }
        
        .reply-form.show {
            display: block;
        }
        
        .reply-list {
            margin-top: 1rem;
            padding-left: 1.5rem;
            border-left: 2px solid var(--border);
        }
        
        .reply-item {
            margin-bottom: 0.75rem;
            padding: 0.75rem;
            background-color: var(--light);
            border-radius: 0.35rem;
        }
        
        .badge {
            font-size: 0.75rem;
            padding: 0.15rem 0.5rem;
            margin-left: 0.5rem;
        }
        
        @media (max-width: 992px) {
            .main-container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid var(--border);
                padding: 1rem;
            }
            
            .sidebar-menu {
                display: flex;
                overflow-x: auto;
                padding-bottom: 0.5rem;
            }
            
            .sidebar-menu li {
                margin-bottom: 0;
                margin-right: 0.5rem;
            }
            
            .sidebar-menu a {
                padding: 0.5rem 1rem;
                white-space: nowrap;
            }
            
            .report-images {
                flex-direction: column;
            }
            
            .report-images img {
                width: 100%;
                max-height: none;
            }
        }
        
        @media (max-width: 576px) {
            .content {
                padding: 1rem;
            }
            
            .report-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .report-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-shield-alt text-primary me-2"></i>社交平台
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">举报管理</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">安全中心</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">系统设置</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <div class="notification-icon position-relative">
                        <button class="btn btn-light p-1">
                            <i class="fas fa-bell"></i>
                            <span class="position-absolute top-0 right-0 w-2 h-2 bg-danger rounded-circle"></span>
                        </button>
                    </div>
                    <div class="dropdown">
                        <button class="btn btn-light p-0" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/100/100?random=200" alt="管理员头像" class="rounded-circle" style="width:36px;height:36px;">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人中心</a></li>
                            <li><a class="dropdown-item" href="#">账号设置</a></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="main-container">
        <!-- 侧边栏 -->
        <aside class="sidebar">
            <ul class="sidebar-menu">
                <li><a href="#"><i class="fas fa-tachometer-alt"></i> 数据概览</a></li>
                <li><a href="#"><i class="fas fa-flag"></i> 举报列表 <span class="badge badge-pill ms-auto">24</span></a></li>
                <li><a href="#" class="active"><i class="fas fa-file-alt"></i> 举报详情</a></li>
                <li><a href="#"><i class="fas fa-history"></i> 处理记录</a></li>
                <li><a href="#"><i class="fas fa-cog"></i> 举报设置</a></li>
            </ul>
            
            <h3 class="sidebar-title">相关举报</h3>
            <ul class="sidebar-menu">
                <li><a href="#">
                    <div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">用户发布低俗内容</div>
                </a></li>
                <li><a href="#">
                    <div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">垃圾广告刷屏行为</div>
                </a></li>
                <li><a href="#">
                    <div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">冒用他人身份信息</div>
                </a></li>
                <li><a href="#">
                    <div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">恶意攻击辱骂他人</div>
                </a></li>
            </ul>
        </aside>
        
        <!-- 主内容 -->
        <main class="content">
            <div class="section-title">
                <h1 class="h5 mb-0">举报详情</h1>
                <a href="#" class="btn btn-sm btn-outline-secondary">
                    <i class="fas fa-arrow-left me-1"></i> 返回列表
                </a>
            </div>
            
            <!-- 举报基本信息 -->
            <div class="card">
                <div class="card-body">
                    <div class="report-header">
                        <div class="report-author">
                            <img src="https://picsum.photos/100/100?random=2" alt="举报者头像" class="author-avatar">
                            <div class="author-info">
                                <div class="author-name">李华 <span class="badge bg-primary">举报者</span></div>
                                <div class="report-time">举报于 2023-06-15 09:45</div>
                            </div>
                        </div>
                        <span class="report-status status-processing">处理中</span>
                    </div>
                    
                    <h2 class="report-title">举报包含暴力元素的不当内容</h2>
                    <span class="report-type type-inappropriate">不当内容</span>
                    
                    <div class="report-content">
                        <p>该用户发布的图片包含不当内容，可能引起不适。图片中含有未经处理的暴力元素，不符合社区规范。我已经截取了相关内容作为证据，希望平台能够尽快处理，移除该内容并对发布者进行警告或处罚。</p>
                        <p>这种内容对青少年用户影响尤其不好，平台应该加强审核力度，维护健康的社区环境。该用户账号近期多次发布类似边缘内容，有故意试探社区底线的嫌疑。</p>
                    </div>
                    
                    <div class="report-images">
                        <img src="https://picsum.photos/600/400?random=10" alt="举报证据图片1" class="img-fluid">
                        <img src="https://picsum.photos/600/400?random=11" alt="举报证据图片2" class="img-fluid">
                    </div>
                    
                    <div class="report-meta">
                        <div class="meta-item">
                            <i class="fas fa-eye"></i>
                            <span>浏览: 563</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-thumbs-up"></i>
                            <span>支持: 78</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-comment"></i>
                            <span>评论: 23</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-hashtag"></i>
                            <span>举报编号: R-20230615-0945</span>
                        </div>
                        <div class="meta-item">
                            <i class="fas fa-user"></i>
                            <span>处理人员: 张三</span>
                        </div>
                    </div>
                    
                    <div class="report-actions">
                        <button class="btn btn-primary" id="resolveBtn">
                            <i class="fas fa-check me-1"></i> 标记为已解决
                        </button>
                        <button class="btn btn-danger" id="rejectBtn">
                            <i class="fas fa-times me-1"></i> 驳回举报
                        </button>
                        <button class="btn btn-outline-secondary" id="escalateBtn">
                            <i class="fas fa-level-up-alt me-1"></i> 升级处理
                        </button>
                        <button class="btn btn-outline-secondary" id="messageBtn">
                            <i class="fas fa-envelope me-1"></i> 联系举报者
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 涉及用户信息 -->
            <div class="card">
                <div class="card-header">涉及用户信息</div>
                <div class="card-body">
                    <div class="involved-user">
                        <img src="https://picsum.photos/100/100?random=30" alt="被举报用户头像" class="involved-avatar">
                        <div class="involved-info">
                            <div class="involved-name">user45678 <span class="badge bg-warning">需关注</span></div>
                            <div class="involved-meta text-muted text-sm">注册时间: 2023-01-15 | 发布内容: 127 | 被举报次数: 5</div>
                        </div>
                        <div class="involved-actions">
                            <a href="#" class="text-primary">查看资料</a> | 
                            <a href="#" class="text-primary">历史内容</a> | 
                            <a href="#" class="text-primary">处罚记录</a>
                        </div>
                    </div>
                    
                    <div class="involved-content">
                        <h6 class="mb-2">被举报内容摘要:</h6>
                        <div class="p-3 bg-light rounded border border-muted">
                            <p class="mb-0">这是一组纪实摄影作品，记录了冲突地区的真实情况，可能引起不适但具有重要的社会意义...</p>
                            <div class="mt-2 text-end">
                                <a href="#" class="text-primary" target="_blank">查看完整内容 <i class="fas fa-external-link-alt"></i></a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 处理 timeline -->
            <div class="card">
                <div class="card-header">处理 timeline</div>
                <div class="card-body">
                    <div class="timeline">
                        <div class="timeline-item">
                            <div class="timeline-time">2023-06-15 10:05</div>
                            <div class="timeline-content">
                                <strong>张三</strong> 接收举报并开始处理
                            </div>
                        </div>
                        <div class="timeline-item">
                            <div class="timeline-time">2023-06-15 10:10</div>
                            <div class="timeline-content">
                                <strong>系统</strong> 自动审核：内容包含敏感元素，建议人工审核
                            </div>
                        </div>
                        <div class="timeline-item">
                            <div class="timeline-time">2023-06-15 10:30</div>
                            <div class="timeline-content">
                                <strong>张三</strong> 已查看举报内容，确认包含不适元素，正在评估处理方案
                            </div>
                        </div>
                        <div class="timeline-item">
                            <div class="timeline-time">2023-06-15 11:15</div>
                            <div class="timeline-content">
                                <strong>张三</strong> 已联系内容发布者，要求其说明情况
                            </div>
                        </div>
                    </div>
                    
                    <!-- 添加处理记录 -->
                    <div class="add-timeline">
                        <div class="mb-3">
                            <label for="timelineContent" class="form-label">添加处理记录</label>
                            <textarea class="form-control" id="timelineContent" rows="3" placeholder="记录处理进展或结果..."></textarea>
                        </div>
                        <button class="btn btn-sm btn-primary">添加记录</button>
                    </div>
                </div>
            </div>
            
            <!-- 留言与回复 -->
            <div class="card">
                <div class="card-header">留言与回复</div>
                <div class="card-body">
                    <!-- 留言表单 -->
                    <div class="comment-form">
                        <textarea class="comment-textarea" placeholder="添加留言或回复..."></textarea>
                        <div class="comment-actions">
                            <button class="btn btn-sm btn-outline-secondary me-2">预览</button>
                            <button class="btn btn-sm btn-primary">发布留言</button>
                        </div>
                    </div>
                    
                    <!-- 留言列表 -->
                    <div class="comment-list">
                        <!-- 留言1 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=5" alt="用户头像" class="comment-avatar">
                                    <div>
                                        <div class="comment-author-name">管理员 - 王五 <span class="badge bg-secondary">管理员</span></div>
                                        <div class="comment-time">2023-06-15 14:22</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                我也查看了该内容，确实包含一些可能引起不适的元素。不过考虑到这是纪实摄影，是否可以考虑打码处理而非直接删除？这样既保护了社区环境，也保留了内容的社会价值。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action reply-btn">
                                    <i class="far fa-reply"></i> 回复
                                </div>
                                <div class="comment-action">
                                    <i class="far fa-thumbs-up"></i> 赞同 (5)
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form">
                                <textarea class="comment-textarea" placeholder="回复 @管理员 - 王五..."></textarea>
                                <div class="comment-actions">
                                    <button class="btn btn-sm btn-outline-secondary me-2 cancel-reply">取消</button>
                                    <button class="btn btn-sm btn-primary">回复</button>
                                </div>
                            </div>
                            
                            <!-- 回复列表 -->
                            <div class="reply-list">
                                <div class="reply-item">
                                    <div class="comment-header">
                                        <div class="comment-author">
                                            <img src="https://picsum.photos/100/100?random=200" alt="用户头像" class="comment-avatar">
                                            <div>
                                                <div class="comment-author-name">管理员 - 张三 <span class="badge bg-secondary">处理人</span></div>
                                                <div class="comment-time">2023-06-15 14:35</div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="comment-content">
                                        @管理员 - 王五 这个建议不错，我会考虑对敏感部分进行打码处理，然后保留内容。同时会联系发布者，提醒其后续发布类似内容时进行适当处理。
                                    </div>
                                    <div class="comment-actions">
                                        <div class="comment-action reply-btn">
                                            <i class="far fa-reply"></i> 回复
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言2 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=2" alt="用户头像" class="comment-avatar">
                                    <div>
                                        <div class="comment-author-name">李华 <span class="badge bg-primary">举报者</span></div>
                                        <div class="comment-time">2023-06-15 11:30</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                请问处理进展如何？我看到该内容仍然可以访问，希望能尽快处理，避免更多用户看到不适内容。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action reply-btn">
                                    <i class="far fa-reply"></i> 回复
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form">
                                <textarea class="comment-textarea" placeholder="回复 @李华..."></textarea>
                                <div class="comment-actions">
                                    <button class="btn btn-sm btn-outline-secondary me-2 cancel-reply">取消</button>
                                    <button class="btn btn-sm btn-primary">回复</button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- 留言3 -->
                        <div class="comment-item">
                            <div class="comment-header">
                                <div class="comment-author">
                                    <img src="https://picsum.photos/100/100?random=30" alt="用户头像" class="comment-avatar">
                                    <div>
                                        <div class="comment-author-name">user45678 <span class="badge bg-warning">被举报者</span></div>
                                        <div class="comment-time">2023-06-15 11:20</div>
                                    </div>
                                </div>
                            </div>
                            <div class="comment-content">
                                我发布的是纪实摄影作品，目的是让更多人了解冲突的残酷性，并非故意传播暴力内容。希望平台能够理解作品的社会意义，不要简单删除。
                            </div>
                            <div class="comment-actions">
                                <div class="comment-action reply-btn">
                                    <i class="far fa-reply"></i> 回复
                                </div>
                                <div class="comment-action">
                                    <i class="far fa-thumbs-up"></i> 赞同 (3)
                                </div>
                            </div>
                            
                            <!-- 回复表单 -->
                            <div class="reply-form">
                                <textarea class="comment-textarea" placeholder="回复 @user45678..."></textarea>
                                <div class="comment-actions">
                                    <button class="btn btn-sm btn-outline-secondary me-2 cancel-reply">取消</button>
                                    <button class="btn btn-sm btn-primary">回复</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 回复按钮功能
            const replyBtns = document.querySelectorAll('.reply-btn');
            const cancelReplyBtns = document.querySelectorAll('.cancel-reply');
            
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    // 关闭其他所有回复表单
                    document.querySelectorAll('.reply-form').forEach(form => {
                        form.classList.remove('show');
                    });
                    
                    // 显示当前回复表单
                    const replyForm = this.closest('.comment-item').querySelector('.reply-form');
                    replyForm.classList.add('show');
                    replyForm.querySelector('textarea').focus();
                });
            });
            
            cancelReplyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const replyForm = this.closest('.reply-form');
                    replyForm.classList.remove('show');
                });
            });
            
            // 举报处理按钮功能
            const resolveBtn = document.getElementById('resolveBtn');
            const rejectBtn = document.getElementById('rejectBtn');
            const escalateBtn = document.getElementById('escalateBtn');
            const messageBtn = document.getElementById('messageBtn');
            const statusElement = document.querySelector('.report-status');
            
            resolveBtn.addEventListener('click', function() {
                if (confirm('确定要将此举报标记为已解决吗？')) {
                    statusElement.className = 'report-status status-resolved';
                    statusElement.textContent = '已解决';
                    
                    // 添加到timeline
                    addTimelineItem('已将举报标记为已解决，对敏感内容进行了打码处理', 'resolved');
                    showToast('举报已标记为已解决');
                }
            });
            
            rejectBtn.addEventListener('click', function() {
                if (confirm('确定要驳回此举报吗？请确保有充分理由。')) {
                    const reason = prompt('请输入驳回理由：');
                    if (reason) {
                        statusElement.className = 'report-status status-rejected';
                        statusElement.textContent = '已驳回';
                        
                        // 添加到timeline
                        addTimelineItem(`已驳回举报，理由：${reason}`, 'rejected');
                        showToast('举报已驳回');
                    }
                }
            });
            
            escalateBtn.addEventListener('click', function() {
                const reason = prompt('请输入升级处理的理由：');
                if (reason) {
                    addTimelineItem(`已将举报升级处理，理由：${reason}`, '');
                    showToast('举报已升级处理');
                }
            });
            
            messageBtn.addEventListener('click', function() {
                alert('将打开与举报者的聊天窗口');
            });
            
            // 添加timeline项目
            function addTimelineItem(content, type = '') {
                const timeline = document.querySelector('.timeline');
                const now = new Date();
                const timeStr = `${now.getFullYear()}-${(now.getMonth()+1).toString().padStart(2, '0')}-${now.getDate().toString().padStart(2, '0')} ${now.getHours().toString().padStart(2, '0')}:${now.getMinutes().toString().padStart(2, '0')}`;
                
                const item = document.createElement('div');
                item.className = `timeline-item ${type}`;
                item.innerHTML = `
                    <div class="timeline-time">${timeStr}</div>
                    <div class="timeline-content">
                        <strong>你</strong> ${content}
                    </div>
                `;
                
                timeline.prepend(item);
            }
            
            
        });
    </script>
</body>
</html>
    
